package com.db.person.service;

import com.db.person.bean.Job;
import com.db.person.mapper.JobMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobServiceImpl implements IJobService{

    @Autowired
    private JobMapper jobMapper;

    @Override
    public List<Job> getAll() {
        return jobMapper.getAll();
    }

    @Override
    public void save(Job job) {
        jobMapper.save(job);
    }

    @Override
    public void update(Job job) {
        jobMapper.update(job);
    }
}
